package cn.ad.server.domain.ad;

import cn.ad.server.domain.enumration.Age;
import cn.ad.server.domain.enumration.Education;
import cn.ad.server.domain.enumration.Gender;
import cn.ad.server.domain.enumration.Income;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 策略对应Crow信息map
 * 
 * @author wangwei
 *
 */
public class StrategyCrowdMap implements Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = -2635684283732436684L;
	static final String VERSION = "0";
	static final String CACHE_NAME = "strategycrowdmap";

	private long id;
	private long strategyId;
	private int status;
	private Date createTime;
	private Date updateTime;
	private String gender;
	private List<Gender> genderList;
	private String age;
	private List<Age> ageList;
	private String education;
	private List<Education> educationList;
	private String income;
	private List<Income> incomeList;

	public static String cacheKey(long id) {
		return new StringBuffer(CACHE_NAME).append(":").append(VERSION).append(":").append(id).toString();
	}

	public String toCacheKey() {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(this.getId()).toString();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getStrategyId() {
		return strategyId;
	}

	public void setStrategyId(long strategyId) {
		this.strategyId = strategyId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public List<Gender> getGenderList() {
		return genderList;
	}

	public void setGenderList(List<Gender> genderList) {
		this.genderList = genderList;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public List<Age> getAgeList() {
		return ageList;
	}

	public void setAgeList(List<Age> ageList) {
		this.ageList = ageList;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public List<Education> getEducationList() {
		return educationList;
	}

	public void setEducationList(List<Education> educationList) {
		this.educationList = educationList;
	}

	public String getIncome() {
		return income;
	}

	public void setIncome(String income) {
		this.income = income;
	}

	public List<Income> getIncomeList() {
		return incomeList;
	}

	public void setIncomeList(List<Income> incomeList) {
		this.incomeList = incomeList;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	

}
